Optimal. Leaf size=66 \[ -\frac {2 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a+a \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2842, 21, 2852,
212} \begin {gather*} -\frac {2 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{d}-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 212
Rule 2842
Rule 2852
Rubi steps
\begin {align*} \int \csc (c+d x) (a+a \sin (c+d x))^{3/2} \, dx &=-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a+a \sin (c+d x)}}+2 \int \frac {\csc (c+d x) \left (\frac {a^2}{2}+\frac {1}{2} a^2 \sin (c+d x)\right )}{\sqrt {a+a \sin (c+d x)}} \, dx\\ &=-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a+a \sin (c+d x)}}+a \int \csc (c+d x) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a+a \sin (c+d x)}}-\frac {\left (2 a^2\right ) \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}\\ &=-\frac {2 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}-\frac {2 a^2 \cos (c+d x)}{d \sqrt {a+a \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 118, normalized size = 1.79 \begin {gather*} \frac {\left (-2 \cos \left (\frac {1}{2} (c+d x)\right )-\log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+\log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a (1+\sin (c+d x)))^{3/2}}{d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.88, size = 84, normalized size = 1.27
method | result | size |
default | \(-\frac {2 \left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, a \left (\sqrt {a -a \sin \left (d x +c \right )}+\sqrt {a}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}}{\sqrt {a}}\right )\right )}{\cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 239 vs.
\(2 (58) = 116\).
time = 0.36, size = 239, normalized size = 3.62 \begin {gather*} \frac {{\left (a \cos \left (d x + c\right ) + a \sin \left (d x + c\right ) + a\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) - 4 \, {\left (a \cos \left (d x + c\right ) - a \sin \left (d x + c\right ) + a\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{2 \, {\left (d \cos \left (d x + c\right ) + d \sin \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \csc {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 104, normalized size = 1.58 \begin {gather*} -\frac {\sqrt {2} {\left (\sqrt {2} a \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) - 4 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}}{\sin \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________